<div class="matches form">
<?php echo $this->Form->create('Match'); ?>
	<fieldset>
		<legend><?php echo __('Add Match'); ?></legend>
	<?php
		echo $this->Form->input('championship_id');
	?>
		Name:
		<input type="text" id="MatchName1" name="data[Match][name1]">
		vs
		<input type="text" id="MatchName2" name="data[Match][name2]">
	<?php
		echo $this->Form->input('home',array('empty' => true));
		echo $this->Form->input('visitor',array('empty' => true));
		echo $this->Form->input('type', array(
            'options' => array('Grupo' => 'Grupo', 'Octavos' => 'Octavos', 'Cuartos' => 'Cuartos',
			'Semifinal' => 'Semifinal', 'Final' => 'Final',
			'Tercer lugar' => 'Tercer lugar')));
		echo $this->Form->input('place');
		echo $this->Form->input('start');

	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('List Matches'), array('action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('List Championships'), array('controller' => 'championships', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Championship'), array('controller' => 'championships', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Teams'), array('controller' => 'teams', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Local'), array('controller' => 'teams', 'action' => 'add')); ?> </li>
	</ul>
</div>
